package com.ctrip.ec.dal;

import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by jiang on 2018/11/3.
 */

public  class  EntityProperty{
    private  String pkName;
    private  Class pkType;
    private  String tableName;
    private List<String> columns;
    private List<String> columnsEx;//扩展字段,用于查询
    private Map<String,Method> colGetMethods;
    private  Map<String,Method> colSetMethods;

    public  EntityProperty(){
        // colFields = new HashMap<>();
        colGetMethods = new HashMap<>();
        colSetMethods = new HashMap<>();
        columns = new ArrayList<>();
        columnsEx = new ArrayList<>();
    }


    public String getPkName() {
        return pkName;
    }

    public Class getPkType() {
        return pkType;
    }

    public String getTableName() {
        return tableName;
    }

    public  void setTableName(String tableName){
        this.tableName = tableName;
    }

    public void setPkName(String pkName) {
        this.pkName = pkName;
    }

    public void setPkType(Class pkType) {
        this.pkType = pkType;
    }



    public List<String> getColumns() {
        return columns;
    }

    public List<String> getColumnsEx(){
        return columnsEx;
    }

    public Map<String, Method> getColGetMethods() {
        return colGetMethods;
    }

    public Map<String, Method> getColSetMethods() {
        return colSetMethods;
    }
}


